import QtQuick 2.8
import QtQuick.Controls 2.1
import QtWeChat 1.0

Button {
    id: root
    implicitWidth: 35
    implicitHeight: 35
    checkable: true
    hoverEnabled: true

    property alias source: icon.source

    background: Item {}

    Image {
        id: icon
        anchors.centerIn: parent
        Selector on source {
            states: [
                { "hover" : root.hovered },
                { "on" : root.checked },
            ]
        }
    }
}
